//
// Unihan Input Method
//
// Copyright © 2002-2007 Sun Wah Linux Ltd.
//
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
// USA
//
// $Id: phrase.h 796 2007-06-30 19:00:01Z roger $
//

#ifndef __PHRASE_H
#define __PHRASE_H

#include <iml/SunIM.h>
#include "unicode.h"

void phrase_matcher_init(iml_desktop_t *d);
void phrase_matcher_done(iml_desktop_t *d);
void phrase_matcher_create_session(iml_session_t *s);
void phrase_matcher_destroy_session(iml_session_t *s);
int phrase_matcher_search(iml_session_t *s, const UTF8CHAR *utf8);
void phrase_matcher_show_results(iml_session_t *s);
UTF8CHAR *phrase_matcher_get_result(iml_session_t *s, int row);
void phrase_matcher_hide_results(iml_session_t *s);
void phrase_matcher_next_page(iml_session_t *s);
void phrase_matcher_prev_page(iml_session_t *s);
void phrase_matcher_add_extra_cands(iml_session_t *s, char **cands, int num_cands, int source);

#endif /* __PHRASE_H */

// vi:ts=4:sw=4:nowrap:cin:expandtab
